package com.javaeedev.lightweight.mvc.sample.web;

import com.javaeedev.lightweight.mvc.Action;
import com.javaeedev.lightweight.mvc.ActionContext;
import com.javaeedev.lightweight.mvc.ModelAndView;

/**
 * Sign out.
 * 
 * @author Xuefeng
 */
public class SignoutAction implements Action {

    public ModelAndView execute() throws Exception {
        ActionContext.getActionContext().getSession().removeAttribute("USER");
        return new ModelAndView("redirect:start.do");
    }

}
